package spynx.desl.runtime.operators.impl;

import spynx.desl.runtime.IExecutionContext;
import spynx.desl.runtime.IOperator;

public class ArrayOperator implements IOperator {

	@Override
	public String getOperator() {
		return "{";
	}

	@Override
	public Object apply(IExecutionContext context, String operator,
			Object... args) {
		Object[] values = new Object[args.length];
		for (int i = 0; i < args.length; i++)
			values[i] = context.resolveValue(args[i]);
		return values;
	}

}
